//
//  BgView.m
//  iceTearsTest
//
//  Created by 张飞跃 on 16/5/18.
//  Copyright © 2016年 张飞跃. All rights reserved.
//

#import "BgView.h"

@implementation BgView
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [[NSBundle mainBundle] loadNibNamed:@"BgVIew" owner:self options:nil];
        self.contentView.frame = frame;
        [self addSubview:_contentView];
    }
    return self;
}

- (IBAction)btnEvent:(UIButton *)sender {
    NSLog(@"12");
    [self.delegate deleteView:@"1"];
}
@end
